package com.project.test;

import com.project.proxy.ITarget;
import com.project.proxy.ProxyFactory;
import com.project.proxy.Target;

public class test {
    public static void main(String[] args) {
        ProxyFactory factory = new ProxyFactory(new Target());
       ITarget t = (ITarget) factory.getProxy();
        t.speak();
    }
}
